/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.grnt.buddy;

import java.util.TreeSet;
import org.grnt.common.TwoTuple;

/**
 * It is Decorator which decorates a TwoTuple class to a particular class that holds
 * two fields first is BuddyBean object another is a set includes all its children's id
 * @author sayid
 */
public class BuddyDecorator extends TwoTuple<BuddyBean, TreeSet<Long>> {
	
	/**
	 * Contstructure with two parameter one is BuddyBean object another is the
	 * set holds the ids of the BuddyBean object children.
	 * @param buddy The object for decorated.
	 * @param children The buddies children's ids.
	 */
	public BuddyDecorator(BuddyBean buddy, TreeSet<Long> children) {
		super(buddy, children);
	}

	/**
	 *
	 * @return The BuddyBean object.
	 */
	public final BuddyBean getBuddyBean() {
		return value1;
	}

	/**
	 *
	 * @return The children's ids set.
	 */
	public final TreeSet<Long> getChildren() {
		return value2;
	}
}
